package com.code.model.vo.login;

import com.code.commons.model.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 登录凭证VO
 *
 * @author tangyifei
 * @since 2019-5-24 15:20:30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginCredentialVO implements Model {

    private static final long serialVersionUID = 5550420394013305835L;

    @ApiModelProperty(value = "凭证ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "账号（一般为手机号）", example = "150****0055")
    @NotBlank(message = "用户账号不能为空")
    private String account;

    @ApiModelProperty(value = "密码", example = "******")
    //@NotBlank(message = "用户密码不能为空")
    private String pwd;

    @ApiModelProperty(value = "账号类型", example = "1")
    private String type;

}
